<?php
// +----------------------------------------------------------------------
// | quanli team
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2020 http://www.fistforward.com/ All rights reserved.
// +----------------------------------------------------------------------
// | create by allen.qiang
// +----------------------------------------------------------------------


/**
 * 会员操作功能
 * @package  quanliadmin/app/customer/action
 * @author   create by allen.qiang
 */

quanli_require('module/base/customer/quanliCust.class.php');

class pa_deliver {

    public function execute() {

        if (isset($_REQUEST['operFlg']) && quanli_is_int($_REQUEST['operFlg'])) {

            switch ( $_REQUEST['operFlg'] ) {

                case 1: //会员地址
                    $this->show();
                    break;

                default:
                    backendError();
                    break;

            }

        } else {

            backendError();

        }

    }

    private function show() {

        global $G_PGLOB;

        if (!isset($_REQUEST['pcustID']) || !quanli_is_int($_REQUEST['pcustID'])) {
            backendError();
        }

        $G_PGLOB->smarty->assign('pcustID' , $_REQUEST['pcustID']);

        $G_PGLOB->smarty->display('customer/customerAddress.tpl');

    }

}